<?php

namespace App\Exports;

use Maatwebsite\Excel\Concerns\WithTitle;

class Common implements \Maatwebsite\Excel\Concerns\FromArray, WithTitle
{
	private $dat, $title;

	function __construct(array $dat, $title='first')
	{
	    $this->title = $title;
		$this->dat = $dat;
	}

	public function array():array
	{
		return $this->dat;
	}


	//sheet的名称
	public function title():string
    {
        return $this->title;
    }


}
